import { SignParamActivity,SignParamCourse } from "./interface";

var goToSignInActivity = function(data:SignParamActivity){
	if(!data.activity_id || data.activity_id==0) return;//如果没有id就不调整
	wx.navigateTo({
		url: '/pages/signIn/signIn?sign_type='+data.sign_type
		+"&activity_id="+data.activity_id,
	});
}
var goToSignInCourse= function(data:SignParamCourse){
	if(!data.course_id || data.course_id==0) return;//如果没有id就不调整
	wx.navigateTo({
		url: '/pages/signIn/signIn?sign_type='+data.sign_type+'&course_id='+data.course_id+'&course_msg='+JSON.stringify(data.course_msg),
	});
}
export{
	goToSignInActivity,
	goToSignInCourse,
	SignParamActivity,
	SignParamCourse,
}